/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.util;

import org.ipti.br.tag.entity.Hb;
import org.ipti.br.tag.entity.Human;

/**
 *
 * @author FelipeMSX
 */
public class HbAuxiliator implements Comparable<HbAuxiliator> {
    
    private Human human;
    private Hb hb1;
    private Hb hb2;
    private Hb hb3;
    private boolean existHb1;
    private boolean existHb2;
    private boolean existHb3;
    
    public HbAuxiliator(){
        human = null;
        hb1 = null;
        hb2 = null;
        hb3 = null;
        existHb1 = false;
        existHb2 = false;
        existHb3 = false;
        
        
    }
    public HbAuxiliator(Human human){
        this.human = human;
    }
    
    @Override
    public int compareTo(HbAuxiliator o) {
       return (this.getHuman().getName().toLowerCase()).compareTo( o.getHuman().getName().toLowerCase());
    }

    public boolean isHb1Null(){
        return ( this.hb1 == null );
    }
    
    public boolean isHb2Null(){
       return ( this.hb2 == null );
    }
    public boolean isHb3Null(){
       return ( this.hb3 == null );
    }
    
    public Human getHuman() {
        return human;
    }

    public void setHuman(Human human) {
        this.human = human;
    }

    public Hb getHb1() {
        return hb1;
    }

    public void setHb1(Hb hb1) {
        this.hb1 = hb1;
    }

    public Hb getHb2() {
        return hb2;
    }

    public void setHb2(Hb hb2) {
        this.hb2 = hb2;
    }

    public Hb getHb3() {
        return hb3;
    }

    public void setHb3(Hb hb3) {
        this.hb3 = hb3;
    }

    public boolean isExistHb1() {
        return existHb1;
    }

    public void setExistHb1(boolean existHb1) {
        this.existHb1 = existHb1;
    }

    public boolean isExistHb2() {
        return existHb2;
    }

    public void setExistHb2(boolean existHb2) {
        this.existHb2 = existHb2;
    }

    public boolean isExistHb3() {
        return existHb3;
    }

    public void setExistHb3(boolean existHb3) {
        this.existHb3 = existHb3;
    }  
}
